package service;

import domain.Product;

import java.util.List;

/**
 * 服务层
 * @author Freedy
 * @date 2020/12/20 15:18
 */
public interface IProductService {
    /**
     * 查找所有
     * @return
     * @throws Exception
     */
    public List<Product> findAll() throws Exception;

    /**
     * 保存用户
     * @param product
     * @throws Exception
     */
    void save(Product product) throws Exception;
}
